package com.uml.umlwork.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.uml.umlwork.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author Youens
 * @date 2021-01-03 13:55
 */

@ApiModel("新闻实体")
@NoArgsConstructor
@Setter
@Getter
@Accessors(chain = true)
@TableName(value = "uml_news",autoResultMap = true)
public class News extends BaseEntity {
    @ApiModelProperty("新闻主题")
    private String title;

    @ApiModelProperty("新闻内容")
    private String content;

    @TableField(value = "is_publish")
    @ApiModelProperty("是否发布")
    private Boolean publish;
}
